import "./index.css"
import { useNavigate } from "react-router-dom";
import { useEffect } from "react"
import { UnorderedListOutline } from 'antd-mobile-icons'
function Wode() {
  let navigate = useNavigate()
  useEffect(() => {

    if (sessionStorage.getItem("isLogin") == "null") {
      console.log(11)
      navigate("/login")
    }
  })


  function tuichu() {
    sessionStorage.setItem("isLogin", null)
    navigate("/login")
  }
  return (
    <div>
      <img src={require('../../assets/img/1京东超市.png')} className='head-img' />

      <button className="tuichu" onClick={tuichu}><UnorderedListOutline fontSize={50} />退出</button>

    </div>
  );
}

export default Wode;